package com.smart.lx.singleton;


import com.smart.lx.singleton.lazy.LazyInnerClassSing;
import com.smart.lx.singleton.lazy.LazySimpleSing;

/**
 * 功能描述: <br>
 * 实体类
 * <p>
 * threadlocal 单例
 *
 * @since: 1.0.0
 * @Author:abc
 * @Date: 2019/3/10
 */
public class ExectorThread implements Runnable{
    @Override
    public void run() {
       // LazySimpleSing singleton = LazySimpleSing.getInstance();
        LazyInnerClassSing singleton = LazyInnerClassSing.getInstance();
//        ThreadLocalSingleton singleton = ThreadLocalSingleton.getInstance();
        System.out.println(Thread.currentThread().getName() + ":" + singleton);
    }
}
